<?php
/* @var $this TaskController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs = array(
    'Nhân viên' => HSUrl::backendUsersUrl()
);

?>

<h1>Công việc của <?php echo $user->username ?></h1>

<?php if (count($mo_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ hai</h2>
        <?php foreach ($mo_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>

<?php if (count($tu_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ ba</h2>
        <?php foreach ($tu_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>

<?php if (count($we_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ tư</h2>
        <?php foreach ($we_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>

<?php if (count($th_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ năm</h2>
        <?php foreach ($th_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>
<?php if (count($fr_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ sáu</h2>
        <?php foreach ($fr_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>

<?php if (count($sa_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Thứ bảy</h2>
        <?php foreach ($sa_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>

<?php if (count($su_tasks) > 0) { ?>
    <div style='border:1px solid gray; margin-bottom:15px;padding:10px;'>
        <h2>Chủ nhật</h2>
        <?php foreach ($su_tasks as $item) { ?>
            <h4><?php echo $item->title ?></h4>
            <p>
                <?php echo $item->content ?>
            </p>
            <?php if ($item->note != '') echo "<p>$item->note</p>" ?>
        <?php } ?>

    </div>

<?php } ?>



